<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<!--Formulario con declaración de class y de ID Formulario-->
<form id="myForm<?php echo $urlPage; ?>" class="formGeneralModel" action="<?php echo url_for('operador/'.($form->getObject()->isNew() ? 'createEvaluacion' : 'updateEvaluacion').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table class="formGeneralTable" border="0" cellspacing="0" cellpadding="0" width="100%">
    <tbody>
      <tr class="addEtiquetaTitulo">
            <td colspan="2"><p>Hoja Holistica</p></td>
      </tr>
      <?php echo $form->renderGlobalErrors() ?>
      <?php echo $form['mascota_id'] ?>
      <?php echo $form['operador_id'] ?>
      <?php for($i=0;$i<count($form['pregunta']);$i++){ ?>
      <tr class="addEtiquetaFila">
        <td><?php echo $form['pregunta'][$i]['valor']->renderLabel() ?></td>
        <td><?php echo $form['pregunta'][$i]['pregunta_id'] ?><?php echo $form['pregunta'][$i]['valor']->renderError() ?><?php echo $form['pregunta'][$i]['valor']; ?></td>
      </tr>
      <?php } ?>
        
    </tbody>
  </table>
<div class="jwj-callcenter-div"></div>


<!--Lista de Acciones del Formulario-->
<div id="jwj-callcenter-action">
    
           <?php echo $form->renderHiddenFields(false) ?>
          <!--BOTON Salvado del formulario-->
          <input type="submit" value="Save" id="jwj-callcenter-form-save" class="jwj-callcenter-form-red"/>
          <?php if (!$form->getObject()->isNew()): ?>
          <!--BOTON Borrado del formulario-->
          <button type="button" id="jwj-callcenter-form-delete" class="jwj-callcenter-form-red" title="Listar" onclick="<?php echo $urlDelete; ?>" >Eliminar</button>
          <!--BOTON Nuevo-->
          <button type="button" id="AddBoton-New" title="Nuevo Registro" class="AddBotonTools" onclick="<?php echo $urlNew; ?>">Nuevo</button>
          <?php endif; ?>
          <!--BOTON Listar-->
          <button type="button" id="AddBoton-Listar" class="jwj-callcenter-form-red" title="Listar" onclick="<?php echo $urlListar; ?>" >Listar</button>
          <!--BOTON Cerrar-->
          <button type="button" id="AddBoton-Cerrar" title="Cerrar" class="AddBotonTools" onclick="<?php echo $urlLoadUserClose; ?>">Cerrar</button>
          
</div>
</form>